Optimal. Leaf size=233 \[ \frac{2 \sqrt{2 \pi } b^{3/2} f^2 S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{c+d x}\right )}{3 d^3}-\frac{b f (d e-c f) \text{CosIntegral}\left (\frac{b}{(c+d x)^2}\right )}{d^3}-\frac{\sqrt{2 \pi } \sqrt{b} (d e-c f)^2 \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{c+d x}\right )}{d^3}+\frac{f (c+d x)^2 (d e-c f) \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{(c+d x) (d e-c f)^2 \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f^2 (c+d x)^3 \sin \left (\frac{b}{(c+d x)^2}\right )}{3 d^3}+\frac{2 b f^2 (c+d x) \cos \left (\frac{b}{(c+d x)^2}\right )}{3 d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.249208, antiderivative size = 233, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 10, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.556, Rules used = {3433, 3359, 3387, 3352, 3379, 3297, 3302, 3409, 3388, 3351} \[ \frac{2 \sqrt{2 \pi } b^{3/2} f^2 S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{c+d x}\right )}{3 d^3}-\frac{b f (d e-c f) \text{CosIntegral}\left (\frac{b}{(c+d x)^2}\right )}{d^3}-\frac{\sqrt{2 \pi } \sqrt{b} (d e-c f)^2 \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{c+d x}\right )}{d^3}+\frac{f (c+d x)^2 (d e-c f) \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{(c+d x) (d e-c f)^2 \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f^2 (c+d x)^3 \sin \left (\frac{b}{(c+d x)^2}\right )}{3 d^3}+\frac{2 b f^2 (c+d x) \cos \left (\frac{b}{(c+d x)^2}\right )}{3 d^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3433
Rule 3359
Rule 3387
Rule 3352
Rule 3379
Rule 3297
Rule 3302
Rule 3409
Rule 3388
Rule 3351
Rubi steps
\begin{align*} \int (e+f x)^2 \sin \left (\frac{b}{(c+d x)^2}\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \left (d^2 e^2 \left (1+\frac{c f (-2 d e+c f)}{d^2 e^2}\right ) \sin \left (\frac{b}{x^2}\right )+2 d e f \left (1-\frac{c f}{d e}\right ) x \sin \left (\frac{b}{x^2}\right )+f^2 x^2 \sin \left (\frac{b}{x^2}\right )\right ) \, dx,x,c+d x\right )}{d^3}\\ &=\frac{f^2 \operatorname{Subst}\left (\int x^2 \sin \left (\frac{b}{x^2}\right ) \, dx,x,c+d x\right )}{d^3}+\frac{(2 f (d e-c f)) \operatorname{Subst}\left (\int x \sin \left (\frac{b}{x^2}\right ) \, dx,x,c+d x\right )}{d^3}+\frac{(d e-c f)^2 \operatorname{Subst}\left (\int \sin \left (\frac{b}{x^2}\right ) \, dx,x,c+d x\right )}{d^3}\\ &=-\frac{f^2 \operatorname{Subst}\left (\int \frac{\sin \left (b x^2\right )}{x^4} \, dx,x,\frac{1}{c+d x}\right )}{d^3}-\frac{(f (d e-c f)) \operatorname{Subst}\left (\int \frac{\sin (b x)}{x^2} \, dx,x,\frac{1}{(c+d x)^2}\right )}{d^3}-\frac{(d e-c f)^2 \operatorname{Subst}\left (\int \frac{\sin \left (b x^2\right )}{x^2} \, dx,x,\frac{1}{c+d x}\right )}{d^3}\\ &=\frac{(d e-c f)^2 (c+d x) \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f (d e-c f) (c+d x)^2 \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f^2 (c+d x)^3 \sin \left (\frac{b}{(c+d x)^2}\right )}{3 d^3}-\frac{\left (2 b f^2\right ) \operatorname{Subst}\left (\int \frac{\cos \left (b x^2\right )}{x^2} \, dx,x,\frac{1}{c+d x}\right )}{3 d^3}-\frac{(b f (d e-c f)) \operatorname{Subst}\left (\int \frac{\cos (b x)}{x} \, dx,x,\frac{1}{(c+d x)^2}\right )}{d^3}-\frac{\left (2 b (d e-c f)^2\right ) \operatorname{Subst}\left (\int \cos \left (b x^2\right ) \, dx,x,\frac{1}{c+d x}\right )}{d^3}\\ &=\frac{2 b f^2 (c+d x) \cos \left (\frac{b}{(c+d x)^2}\right )}{3 d^3}-\frac{b f (d e-c f) \text{Ci}\left (\frac{b}{(c+d x)^2}\right )}{d^3}-\frac{\sqrt{b} (d e-c f)^2 \sqrt{2 \pi } C\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{c+d x}\right )}{d^3}+\frac{(d e-c f)^2 (c+d x) \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f (d e-c f) (c+d x)^2 \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f^2 (c+d x)^3 \sin \left (\frac{b}{(c+d x)^2}\right )}{3 d^3}+\frac{\left (4 b^2 f^2\right ) \operatorname{Subst}\left (\int \sin \left (b x^2\right ) \, dx,x,\frac{1}{c+d x}\right )}{3 d^3}\\ &=\frac{2 b f^2 (c+d x) \cos \left (\frac{b}{(c+d x)^2}\right )}{3 d^3}-\frac{b f (d e-c f) \text{Ci}\left (\frac{b}{(c+d x)^2}\right )}{d^3}-\frac{\sqrt{b} (d e-c f)^2 \sqrt{2 \pi } C\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{c+d x}\right )}{d^3}+\frac{2 b^{3/2} f^2 \sqrt{2 \pi } S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{c+d x}\right )}{3 d^3}+\frac{(d e-c f)^2 (c+d x) \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f (d e-c f) (c+d x)^2 \sin \left (\frac{b}{(c+d x)^2}\right )}{d^3}+\frac{f^2 (c+d x)^3 \sin \left (\frac{b}{(c+d x)^2}\right )}{3 d^3}\\ \end{align*}
Mathematica [A] time = 0.492441, size = 265, normalized size = 1.14 \[ \frac{2 \sqrt{2 \pi } b^{3/2} f^2 S\left (\frac{\sqrt{b} \sqrt{\frac{2}{\pi }}}{c+d x}\right )-3 c^2 d e f \sin \left (\frac{b}{(c+d x)^2}\right )+c^3 f^2 \sin \left (\frac{b}{(c+d x)^2}\right )+3 b f (c f-d e) \text{CosIntegral}\left (\frac{b}{(c+d x)^2}\right )+3 c d^2 e^2 \sin \left (\frac{b}{(c+d x)^2}\right )+3 d^3 e^2 x \sin \left (\frac{b}{(c+d x)^2}\right )+3 d^3 e f x^2 \sin \left (\frac{b}{(c+d x)^2}\right )+d^3 f^2 x^3 \sin \left (\frac{b}{(c+d x)^2}\right )-3 \sqrt{2 \pi } \sqrt{b} (d e-c f)^2 \text{FresnelC}\left (\frac{\sqrt{\frac{2}{\pi }} \sqrt{b}}{c+d x}\right )+2 b c f^2 \cos \left (\frac{b}{(c+d x)^2}\right )+2 b d f^2 x \cos \left (\frac{b}{(c+d x)^2}\right )}{3 d^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 225, normalized size = 1. \begin{align*} -{\frac{1}{{d}^{3}} \left ( - \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2} \right ) \left ( dx+c \right ) \sin \left ({\frac{b}{ \left ( dx+c \right ) ^{2}}} \right ) + \left ({c}^{2}{f}^{2}-2\,cdef+{d}^{2}{e}^{2} \right ) \sqrt{b}\sqrt{2}\sqrt{\pi }{\it FresnelC} \left ({\frac{\sqrt{2}}{\sqrt{\pi } \left ( dx+c \right ) }\sqrt{b}} \right ) -{\frac{ \left ( -2\,c{f}^{2}+2\,def \right ) \left ( dx+c \right ) ^{2}}{2}\sin \left ({\frac{b}{ \left ( dx+c \right ) ^{2}}} \right ) }+{\frac{ \left ( -2\,c{f}^{2}+2\,def \right ) b}{2}{\it Ci} \left ({\frac{b}{ \left ( dx+c \right ) ^{2}}} \right ) }-{\frac{{f}^{2} \left ( dx+c \right ) ^{3}}{3}\sin \left ({\frac{b}{ \left ( dx+c \right ) ^{2}}} \right ) }+{\frac{2\,{f}^{2}b}{3} \left ( - \left ( dx+c \right ) \cos \left ({\frac{b}{ \left ( dx+c \right ) ^{2}}} \right ) -\sqrt{b}\sqrt{2}\sqrt{\pi }{\it FresnelS} \left ({\frac{\sqrt{2}}{\sqrt{\pi } \left ( dx+c \right ) }\sqrt{b}} \right ) \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{2 \, b f^{2} x \cos \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) +{\left (\frac{c^{3} f^{2} \sin \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )}{d^{3}} - 2 \, \int \frac{2 \, b^{2} f^{2} x \sin \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) - 3 \,{\left ({\left (b d^{2} e f - b c d f^{2}\right )} x^{2} +{\left (b d^{2} e^{2} - b c^{2} f^{2}\right )} x\right )} \cos \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )}{2 \,{\left (d^{4} x^{3} + 3 \, c d^{3} x^{2} + 3 \, c^{2} d^{2} x + c^{3} d\right )}}\,{d x} - 2 \, \int \frac{2 \, b^{2} f^{2} x \sin \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) - 3 \,{\left ({\left (b d^{2} e f - b c d f^{2}\right )} x^{2} +{\left (b d^{2} e^{2} - b c^{2} f^{2}\right )} x\right )} \cos \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )}{2 \,{\left ({\left (d^{4} x^{3} + 3 \, c d^{3} x^{2} + 3 \, c^{2} d^{2} x + c^{3} d\right )} \cos \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )^{2} +{\left (d^{4} x^{3} + 3 \, c d^{3} x^{2} + 3 \, c^{2} d^{2} x + c^{3} d\right )} \sin \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )^{2}\right )}}\,{d x}\right )} d^{2} +{\left (d^{2} f^{2} x^{3} + 3 \, d^{2} e f x^{2} + 3 \, d^{2} e^{2} x\right )} \sin \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )}{3 \, d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.85872, size = 713, normalized size = 3.06 \begin{align*} \frac{4 \, \sqrt{2} \pi b d f^{2} \sqrt{\frac{b}{\pi d^{2}}} \operatorname{S}\left (\frac{\sqrt{2} d \sqrt{\frac{b}{\pi d^{2}}}}{d x + c}\right ) - 6 \, \sqrt{2} \pi{\left (d^{3} e^{2} - 2 \, c d^{2} e f + c^{2} d f^{2}\right )} \sqrt{\frac{b}{\pi d^{2}}} \operatorname{C}\left (\frac{\sqrt{2} d \sqrt{\frac{b}{\pi d^{2}}}}{d x + c}\right ) + 4 \,{\left (b d f^{2} x + b c f^{2}\right )} \cos \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) - 3 \,{\left (b d e f - b c f^{2}\right )} \operatorname{Ci}\left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) - 3 \,{\left (b d e f - b c f^{2}\right )} \operatorname{Ci}\left (-\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right ) + 2 \,{\left (d^{3} f^{2} x^{3} + 3 \, d^{3} e f x^{2} + 3 \, d^{3} e^{2} x + 3 \, c d^{2} e^{2} - 3 \, c^{2} d e f + c^{3} f^{2}\right )} \sin \left (\frac{b}{d^{2} x^{2} + 2 \, c d x + c^{2}}\right )}{6 \, d^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (e + f x\right )^{2} \sin{\left (\frac{b}{c^{2} + 2 c d x + d^{2} x^{2}} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (f x + e\right )}^{2} \sin \left (\frac{b}{{\left (d x + c\right )}^{2}}\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]